﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.Text;
using WebServer.Biz;
using WebServer.Models;

namespace WebServer
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“webConf”。
    // 注意: 为了启动 WCF 测试客户端以测试此服务，请在解决方案资源管理器中选择 webConf.svc 或 webConf.svc.cs，然后开始调试。
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class webConf : IwebConf
    {
        #region 网站设置：查询，修改
        /// <summary>
        /// 网站配置
        /// </summary>
        /// <returns></returns>
        public WebConfiguration WebConfigurationInfo(bool Fn, int Show)
        {
            WebConfiguration entity = new WebConfiguration();
            entity = new WebConfigurationBiz().WebConfigurationInfo(Fn, Show);
            return entity;
        }

        /// <summary>
        /// 修改网站配置
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public int UWebConfiguration(WebConfiguration entity)
        {
            int result = 0;
            result = new WebConfigurationBiz().UWebConfiguration(entity);
            return result;
        }

        #endregion
    }
}
